﻿namespace LINQtoSQLDataProvider
{
    using System.Data.Linq;
    using System.Data.Linq.Mapping;
    using System.Data;
    using System.Collections.Generic;
    using System.Reflection;
    using System.Linq;
    using System.Linq.Expressions;
    using System.ComponentModel;
    using System;

    public partial class usp_Role_GetRolesResult
    {

        private string _RoleName;

        private System.Guid _RoleId;

        private string _Description;

        public usp_Role_GetRolesResult()
        {
        }

        [Column(Storage = "_RoleName", DbType = "NVarChar(256)")]
        public string RoleName
        {
            get
            {
                return this._RoleName;
            }
            set
            {
                if ((this._RoleName != value))
                {
                    this._RoleName = value;
                }
            }
        }

        [Column(Storage = "_RoleId", DbType = "UniqueIdentifier NOT NULL")]
        public System.Guid RoleId
        {
            get
            {
                return this._RoleId;
            }
            set
            {
                if ((this._RoleId != value))
                {
                    this._RoleId = value;
                }
            }
        }

        [Column(Storage = "_Description", DbType = "NVarChar(256)")]
        public string Description
        {
            get
            {
                return this._Description;
            }
            set
            {
                if ((this._Description != value))
                {
                    this._Description = value;
                }
            }
        }
    }

    public partial class usp_User_GetUsersResult
    {

        private string _UserName;
        private string _Email;

        private System.Guid _UserId;

        private DateTime _CreateDate;
        private DateTime _LastLoginDate;

        public usp_User_GetUsersResult()
        {
        }

        [Column(Storage = "_UserName", DbType = "NVarChar(256)")]
        public string UserName
        {
            get
            {
                return this._UserName;
            }
            set
            {
                if ((this._UserName != value))
                {
                    this._UserName = value;
                }
            }
        }

        [Column(Storage = "_UserId", DbType = "UniqueIdentifier NOT NULL")]
        public System.Guid UserId
        {
            get
            {
                return this._UserId;
            }
            set
            {
                if ((this._UserId != value))
                {
                    this._UserId = value;
                }
            }
        }

        [Column(Storage = "_Email", DbType = "NVarChar(256)")]
        public string Email
        {
            get
            {
                return this._Email;
            }
            set
            {
                if ((this._Email != value))
                {
                    this._Email = value;
                }
            }
        }

        [Column(Storage = "_CreateDate", DbType = "datetime")]
        public DateTime CreateDate
        {
            get
            {
                return this._CreateDate;
            }
            set
            {
                if ((this._CreateDate != value))
                {
                    this._CreateDate = value;
                }
            }
        }
        [Column(Storage = "_LastLoginDate", DbType = "datetime")]
        public DateTime LastLoginDate
        {
            get
            {
                return this._LastLoginDate;
            }
            set
            {
                if ((this._LastLoginDate != value))
                {
                    this._LastLoginDate = value;
                }
            }
        }
    }

    public partial class usp_Department_AddUsersToDepartmentResult
    {

        private System.Guid _UserId;

        private string _UserName;
        private DateTime _CreateDate;
        private DateTime _LastLoginDate;
        private string _Email;

        public usp_Department_AddUsersToDepartmentResult()
        {
        }

        [Column(Storage = "_UserId", DbType = "UniqueIdentifier NOT NULL")]
        public System.Guid UserId
        {
            get
            {
                return this._UserId;
            }
            set
            {
                if ((this._UserId != value))
                {
                    this._UserId = value;
                }
            }
        }

        [Column(Storage = "_UserName", DbType = "NVarChar(256) NOT NULL", CanBeNull = false)]
        public string UserName
        {
            get
            {
                return this._UserName;
            }
            set
            {
                if ((this._UserName != value))
                {
                    this._UserName = value;
                }
            }
        }

        [Column(Storage = "_Email", DbType = "NVarChar(256)")]
        public string Email
        {
            get
            {
                return this._Email;
            }
            set
            {
                if ((this._Email != value))
                {
                    this._Email = value;
                }
            }
        }

        [Column(Storage = "_CreateDate", DbType = "datetime")]
        public DateTime CreateDate
        {
            get
            {
                return this._CreateDate;
            }
            set
            {
                if ((this._CreateDate != value))
                {
                    this._CreateDate = value;
                }
            }
        }
        [Column(Storage = "_LastLoginDate", DbType = "datetime")]
        public DateTime LastLoginDate
        {
            get
            {
                return this._LastLoginDate;
            }
            set
            {
                if ((this._LastLoginDate != value))
                {
                    this._LastLoginDate = value;
                }
            }
        }
    }

    public partial class usp_Warehouse_GetWarehousesResult
    {
        private System.Guid _WarehouseID;

        private string _WarehouseCode;

        private string _Description;

        //private System.Nullable<System.DateTime> _CreatedDate;

        //private System.Nullable<System.Guid> _CreatedBy;

        private string _WarehouseName;

        private char _NodeType;

        private System.Nullable<System.Guid> _ParentID;

        private bool _HasLocation;

        private bool _HasBatchNo;

        private bool _HasArea;

        //private System.Nullable<System.DateTime> _ModifiedDate;

        //private System.Nullable<System.Guid> _ModifiedBy;


        [Column(Storage = "_WarehouseID", DbType = "UniqueIdentifier NOT NULL", IsPrimaryKey = true)]
        public System.Guid WarehouseID
        {
            get
            {
                return this._WarehouseID;
            }
            set
            {
                if ((this._WarehouseID != value))
                {
                    this._WarehouseID = value;
                }
            }
        }

        [Column(Storage = "_WarehouseCode", DbType = "NVarChar(10) NOT NULL", CanBeNull = false)]
        public string WarehouseCode
        {
            get
            {
                return this._WarehouseCode;
            }
            set
            {
                if ((this._WarehouseCode != value))
                {
                    this._WarehouseCode = value;
                }
            }
        }

        [Column(Storage = "_Description", DbType = "NVarChar(200)")]
        public string Description
        {
            get
            {
                return this._Description;
            }
            set
            {
                if ((this._Description != value))
                {
                    this._Description = value;
                }
            }
        }
        [Column(Storage = "_WarehouseName", DbType = "NVarChar(50)")]
        public string WarehouseName
        {
            get
            {
                return this._WarehouseName;
            }
            set
            {
                if ((this._WarehouseName != value))
                {
                    this._WarehouseName = value;
                }
            }
        }

        [Column(Storage = "_NodeType", DbType = "Char(1) NOT NULL")]
        public char NodeType
        {
            get
            {
                return this._NodeType;
            }
            set
            {
                if ((this._NodeType != value))
                {
                    this._NodeType = value;
                }
            }
        }
        [Column(Storage = "_ParentID", DbType = "UniqueIdentifier")]
        public System.Nullable<System.Guid> ParentID
        {
            get
            {
                return this._ParentID;
            }
            set
            {
                if ((this._ParentID != value))
                {
                    this._ParentID = value;
                }
            }
        }

        [Column(Storage = "_HasLocation", DbType = "Bit NOT NULL")]
        public bool HasLocation
        {
            get
            {
                return this._HasLocation;
            }
            set
            {
                if ((this._HasLocation != value))
                {
                    this._HasLocation = value;
                }
            }
        }

        [Column(Storage = "_HasBatchNo", DbType = "Bit NOT NULL")]
        public bool HasBatchNo
        {
            get
            {
                return this._HasBatchNo;
            }
            set
            {
                if ((this._HasBatchNo != value))
                {
                    this._HasBatchNo = value;
                }
            }
        }

        [Column(Storage = "_HasArea", DbType = "Bit NOT NULL")]
        public bool HasArea
        {
            get
            {
                return this._HasArea;
            }
            set
            {
                if ((this._HasArea != value))
                {
                    this._HasArea = value;
                }
            }
        }
    }
}
